﻿<phone:PhoneApplicationPage
    x:Class="OnlineMovies.Views.AddNewMatch"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
     xmlns:inputtoolkit="clr-namespace:MarkHeath.StarRating;assembly=MarkHeath.StarRating"
      xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="{StaticResource bipivot}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="80"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="10,17,0,28" Orientation="Horizontal">
            <Image Style="{StaticResource DetailPagePivotTitleImage}" x:Name="imgTitle" MouseLeftButtonDown="imgTitle_MouseEnter"/>
            <TextBlock x:Name="tblkVideosTitle" Text="ADD MATCH"  Style="{StaticResource DetailPagePivotTitle}" />
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>

            </Grid.RowDefinitions>
            <StackPanel Orientation="Vertical" Grid.Row="0">
                <StackPanel Orientation="Horizontal">
                    <TextBlock x:Name="type" Text="Name" Margin="15,0,0,0" Foreground="White"></TextBlock>
                    <TextBlock x:Name="valid" Text="Required" FontSize="16" Foreground="Red" Margin="10,4,0,0"  Visibility="Collapsed"></TextBlock>
                </StackPanel>
                <TextBox x:Name="tblkshowname" Width="500"  HorizontalAlignment="Left"></TextBox>
            </StackPanel>
           
            <StackPanel Orientation="Horizontal" Grid.Row="1">
                <TextBlock  Text="Rating" Margin="15,10,0,0" Foreground="White"></TextBlock>
                <inputtoolkit:StarRatingControl x:Name="rating" Rating="10" HorizontalAlignment="Left" Margin="15,10,0,0" NumberOfStars="5" Height="25" Width="139" MouseLeftButtonDown="rating_MouseLeftButtonDown_1" ></inputtoolkit:StarRatingControl>
            </StackPanel>
            <!--<StackPanel Grid.Row="2" Orientation="Vertical">
                <StackPanel Orientation="Horizontal">
                    <TextBlock  Text="Team A" Margin="15,10,0,0" Foreground="White"></TextBlock>
                    <TextBlock x:Name="validteamA" Text="Required" FontSize="16" Foreground="Red" Margin="10,4,0,0" Visibility="Collapsed"></TextBlock>
                </StackPanel>
                <toolkit:AutoCompleteBox InputScope="Text"  SelectionChanged="tblkteamAname_SelectionChanged_1" Name="tblkteamAname" Width="500"  Margin="0,-7,0,0"  ValueMemberBinding="{Binding CategoryName}" FilterMode="Contains" ItemsSource="{Binding}"   Height="73">
                    <toolkit:AutoCompleteBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding CategoryName}" ></TextBlock>
                        </DataTemplate>
                    </toolkit:AutoCompleteBox.ItemTemplate>
                </toolkit:AutoCompleteBox>
            </StackPanel>
            <StackPanel Grid.Row="3" Orientation="Vertical">
                <StackPanel Orientation="Horizontal">
                    <TextBlock  Text="Team B" Margin="15,10,0,0" Foreground="White"></TextBlock>
                    <TextBlock x:Name="validteamB" Text="Required" FontSize="16" Foreground="Red" Margin="10,4,0,0" Visibility="Collapsed"></TextBlock>
                </StackPanel>
                <toolkit:AutoCompleteBox InputScope="Text"  SelectionChanged="tblkteamBname_SelectionChanged_1" Name="tblkteamBname" Width="500"  Margin="0,-7,0,0"  ValueMemberBinding="{Binding CategoryName}" FilterMode="Contains" ItemsSource="{Binding}"   Height="73">
                    <toolkit:AutoCompleteBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding CategoryName}" ></TextBlock>
                        </DataTemplate>
                    </toolkit:AutoCompleteBox.ItemTemplate>
                </toolkit:AutoCompleteBox>
            </StackPanel>-->
            <StackPanel Orientation="Horizontal" Grid.Row="2" Margin="15,40,0,0">

                <StackPanel Orientation="Vertical">
                    <TextBlock x:Name="localtblk" Foreground="White" Text="Image From Local"></TextBlock>
                    <Image x:Name="userlocalimg"  Visibility="Visible" Source="/Images/fromlocal.png" Height="190" Width="130" HorizontalAlignment="Left" Margin="10,5,0,0" MouseLeftButtonDown="userlocalimg_MouseLeftButtonDown_1"></Image>
                </StackPanel>
                <StackPanel Orientation="Vertical" Margin="80,0,0,0">
                    <TextBlock x:Name="onlinetblk" Foreground="White" Text="Image From Online"></TextBlock>
                    <Image x:Name="useronlineimg"  Visibility="Visible" Source="/Images/fromonline.png" Height="190" Width="130" HorizontalAlignment="Left" Margin="10,5,0,0" MouseLeftButtonDown="useronlineimg_MouseLeftButtonDown_1"></Image>
                </StackPanel>
            </StackPanel>

        </Grid>
        <StackPanel Name="adstackpl" Grid.Row="2" Orientation="Vertical"  Margin="0,3,2,0">
        </StackPanel>
    </Grid>
    <phone:PhoneApplicationPage.ApplicationBar>

        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="False">

            <shell:ApplicationBarIconButton x:Name="btnsave" IconUri="/Images/PlayerImages/save.png" Text="Save" Click="btnsave_Click_1"/>

        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>